﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="CompanyDirectors.aspx.cs" Inherits="Auditors_CompanyDirectors" %>

<%@ Register src="topnav.ascx" tagname="topnav" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <script>
        function GoTo(page, id, orderid) {
            window.location.href = page + "?CompanyID=" + id + "&orderid=" + orderid;
        }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">

    <uc1:topnav ID="topnav1" runat="server" />
    <h2>
        第一步，确认董事会信息</h2>
    <table class="commoninfo">
        <tr>
            <td style="width: 100px;">
                公司编号
            </td>
            <td>
                <asp:Label ID="lbCompanyID" runat="server" Text='<%#Bind("CompanyID")%>' />
            </td>
        </tr>
        <tr>
            <td>
                公司英文名
            </td>
            <td>
                <asp:Label ID="lbEnglishName" runat="server" Text='<%#Bind("EnglishName")%>' />
            </td>
        </tr>
        <tr>
            <td>
                公司中文名
            </td>
            <td>
                <asp:Label ID="lbChineseName" runat="server" Text='<%#Bind("ChineseName")%>' />
            </td>
        </tr>
        <tr>
            <td>
                注册股份
            </td>
            <td>
                <asp:Label ID="lbStock" runat="server" Text='<%#Bind("Stock")%>' />
            </td>
        </tr>
        <tr>
            <td>
                注册日期
            </td>
            <td>
                <asp:Label ID="lbRegisterDate" runat="server" Text='<%#Bind("RegisterDate")%>' />
            </td>
        </tr>
        <tr>
            <td>
                是否有利得税
            </td>
            <td>
                <asp:Label ID="lbHasProfitTax" runat="server" Text='<%#Bind("HasProfitTax")%>' />
            </td>
        </tr>
        <tr>
            <td>
                商业登记证编号
            </td>
            <td>
                <asp:TextBox ID="TextBox3" runat="server" Text='' />
            </td>
        </tr>
        <tr>
            <td>
                经营范围
            </td>
            <td>
                <asp:TextBox ID="TextBox8" runat="server" Text='' />
            </td>
        </tr>
        <tr>
            <td>
                经营地址
            </td>
            <td>
                <asp:TextBox ID="TextBox9" runat="server" Text='' />
            </td>
        </tr>
        <tr>
            <td>
                期望营业额（可选）
            </td>
            <td>
                <asp:TextBox ID="TextBox10" runat="server" Text='' />
            </td>
        </tr>
        <tr>
            <td>
                核数开始日期
            </td>
            <td>
                <asp:TextBox ID="TextBox4" runat="server" Text='' />
            </td>
        </tr>
        <tr>
            <td>
                核数结束日期
            </td>
            <td>
                <asp:TextBox ID="TextBox5" runat="server" Text='' />
            </td>
        </tr>
        <tr>
            <td>
                期望利得税
            </td>
            <td>
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            </td>
        </tr>
    </table>
    <h3>
        股东信息</h3>
    <div>
        <table class="commoninfo">
            <tr>
                <td style="width: 100px;">
                    股东名字
                </td>
                <td>
                    <asp:TextBox ID="txtName" runat="server" Text='' />
                </td>
                <td style="width: 100px;">
                    英文名字
                </td>
                <td>
                    <asp:TextBox ID="TextBox6" runat="server" Text='' />
                </td>
                <td style="width: 100px;">
                    占比
                </td>
                <td>
                    <asp:TextBox ID="txtProportion" runat="server" Text='' Width="40px" />%
                </td>
                <td>
                    <asp:Button ID="Button1" runat="server" Text="添加" OnClick="Button1_Click" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="DirectorName"
        CssClass="commongv" OnRowCommand="GridView1_RowCommand" OnRowDeleting="GridView1_RowDeleting">
        <Columns>
            <asp:BoundField DataField="DirectorName" HeaderText="股东名字" ReadOnly="True" SortExpression="DirectorName" />
            <asp:BoundField DataField="EnglishName" HeaderText="英文名" ReadOnly="True" SortExpression="EnglishName" />
            <asp:TemplateField HeaderText="占比">
                <ItemTemplate>
                    <asp:TextBox runat="server" ID="TextBox1" Text='<%# Eval("Proportion")%>'></asp:TextBox>
                    %
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <asp:Button ID="Button2" runat="server" CommandName="Delete" Text="删除" CommandArgument='<%# Eval("DirectorName")%>' />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <h3>
        董事会信息</h3>
    <div>
        <table class="commoninfo">
            <tr>
                <td style="width: 100px;">
                    董事名字
                </td>
                <td>
                    <asp:TextBox ID="TextBox2" runat="server" Text='' />
                </td>
                <td style="width: 100px;">
                    英文名字
                </td>
                <td>
                    <asp:TextBox ID="TextBox7" runat="server" Text='' />
                </td>
                <td style="width: 100px;">
                </td>
                <td style="width: 100px;">
                </td>
                <td>
                    <asp:Button ID="Button4" runat="server" Text="添加" OnClick="Button4_Click" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataKeyNames="DirectorName"
        CssClass="commongv" OnRowCommand="GridView2_RowCommand" OnRowDeleting="GridView2_RowDeleting">
        <Columns>
            <asp:BoundField DataField="DirectorName" HeaderText="董事名字" ReadOnly="True" SortExpression="DirectorName" />
            <asp:BoundField DataField="EnglishName" HeaderText="英文名" ReadOnly="True" SortExpression="EnglishName" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <asp:Button ID="Button2" runat="server" CommandName="Delete" Text="删除" CommandArgument='<%# Eval("DirectorName")%>' />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div>
        <asp:Button ID="Button3" runat="server" Text="下一步" OnClick="Button3_Click" />
    </div>
    <div>
        <div>
            日志
        </div>
        <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" 
        CssClass="commongv" onrowdatabound="GridView3_RowDataBound">
        <Columns>
            <asp:BoundField DataField="orderid" HeaderText="订单编号" ReadOnly="True" SortExpression="orderid" />
            <asp:BoundField DataField="UpdateTime" HeaderText="进入环节时间" ReadOnly="True" SortExpression="UpdateTime" />
            <asp:BoundField DataField="Status" HeaderText="当前环节" SortExpression="Status" />
            <asp:BoundField DataField="loginName" HeaderText="操作人" ReadOnly="True" SortExpression="loginName" />
        </Columns>
    </asp:GridView>
    </div>
</asp:Content>
